home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 015 / softad.arc / SOFTAD.TXT < prev    next >
Encoding:
Text File  |  1987-01-05  |  10.0 KB  |  266 lines

  1. ................................................Oct 26 1986
  2.  
  3.  
  4.  
  5.         AD+AF HP Soft Fonts: PRD file plus Utilities
  6.         --------------------------------------------
  7.  
  8.  
  9.                by Denis DeLaRoca [72406,1717]
  10.  
  11.  
  12. Introduction:
  13. -------------
  14.  
  15. The following package contains a PRD file to utilize the
  16. newly released Hewlett Packard AD and AF sets of soft fonts
  17. under Microsoft Word 3.x.  In addition, an updated font
  18. download program and some useful font utilities are
  19. included.
  20.  
  21.  
  22.  
  23. Files on Disk:
  24. --------------
  25.  
  26. SOFTAD.TXT    -  This file
  27. SOFTAD.PRD    -  PRD File for AD+AF Soft Font set
  28. SOFTADHP.PRD  -  Same as above for HP-150 computers
  29. SOFTAD.EXE    -  Font Download Program for AD+AF set
  30. SOFTAD.CFG    -  Configuration data for Download Program
  31. WIDTHS.COM    -  Font Width Table Extract Utility
  32. USASCII.COM   -  Font Conversion Utility, Roman-8 to USASCII
  33. WIDTHS.PAS    -  Source code in Turbo Pascal
  34. USASCII.PAS   -  Source code in Turbo Pascal
  35.  
  36.  
  37. PRD File:  SOFTAD.PRD
  38. -----------------------
  39.  
  40. The IBM MS Word 3.x PRD file included is for the Portrait
  41. version of the HP AD-AF Soft Font sets.  These sets include
  42. both Times Roman and Helvetica fonts in sizes 6, 7, 8, 9,
  43. 10, 11, 12, 14, 18, 18, 24 and 30.  Each size is provided in
  44. regular, italic and bold face versions.  The supplied PRD
  45. file assumes certain default values, if you need to change
  46. those values make use of the Microsoft supplied utility
  47. MAKEPRD.  The default values of interest as they appear on
  48. the PRD file are:
  49.  
  50.    SerialInterface: 0
  51.        tells Word that your printer is connected via a
  52.        parallel interface.
  53.  
  54.    WidthTSwap: 1
  55.        tells Word to load one Character Width Table at a
  56.        time.  Since the PRD file contains 66 width tables,
  57.        this setting is recommended.
  58.  
  59.    DownloadFlag: 1
  60.        tells Word that your PRD file contains downloadable
  61.        fonts to be managed with the Font Download program
  62.        HPDWNSFP.EXE.
  63.  
  64.    Character Sets Supported: Roman-8 and USASCII
  65.  
  66. Two PRD files are actually supplied, SOFTAD.PRD is the IBM
  67. version, while SOFTADHP.PRD is the HP-150 version.
  68.  
  69.  
  70.  
  71.  
  72. Download Program: SOFTAD.EXE
  73. ------------------------------
  74.  
  75. To allow Word to manage font downloads automatically a
  76. suitable font download program SOFTAD.EXE is supplied.  For
  77. a detailed explanation of how Word manages soft fonts
  78. consult the Printer Information Manual provided by Microsoft
  79. with version 3.x of Word.  Briefly, a PRD file for soft
  80. fonts may specify a printer initialize file INI and a
  81. font download program EXE.  Each PRD file may then have
  82. corresponding INI and EXE files.  SOFTAD.PRD merely needs a
  83. font downloader SOFTAD.EXE.  For release v3.0 of Word, the
  84. Microsoft supplied font download program has its
  85. configuration data hard coded within the program.  The
  86. replacement font download program supplied here is instead
  87. driven by a configuration file SOFTAD.CFG.  This is a plain
  88. ASCII file whose contents, for the supplied PRD file, is as
  89. follows:
  90.  
  91.    d:\hpfonts             Font File Directory
  92.    []()0?pn.<>p           Font File Name Mask
  93.    yes                    Erase Previous Font Download
  94.    yes                    Mark Downloaded Fonts Permanent
  95.    8,hv,r8,ribi           Helvetica Font - Roman-8 set
  96.    9,hv,us,ribi           Helvetica Font - USASCII set
  97.    24,tr,r8,ribi          Times Roman Font - Roman-8 set
  98.    25,tr,us,ribi          Times Roman Font - USASCII set
  99.  
  100.  
  101. the first line specifies the file directory where your soft
  102. fonts may be found.  The second line specifies a mask used
  103. by the download program to build Font File names.  The wild
  104. chaaracters are as follows:
  105.  
  106.    [] - font name, HV for Helvetica, TR for Times Roman and
  107.         so on.  The actual codes are those used by HP to
  108.         name their font files.
  109.    () - font size in points
  110.    <> - font character set, US for USASCII or R8 for
  111.         Roman-8.
  112.     ? - font style, a single character style code, follo-
  113.         wing HP conventions R for regular, I for italic,
  114.         B for bold and T for bold-italic.
  115.  
  116. Lines 3 and 4 of the CFG file tell the download program
  117. whether to erase any previous downloaded fonts and whether
  118. to mark the fonts to be downloaded as permanent.
  119. Downloaded fonts marked as permanent survive the Printer
  120. Reset sequence issued by Word at the end of each print job.
  121. The erase sequence is, however, able to delete these fonts.
  122.  
  123. Line 5, and succesive lines, describe the font families
  124. supported by a particular PRD file.  The syntax of a font
  125. descriptor is as follows:
  126.  
  127.    <font-id>,<font-name>,<character-set>,<font-styles>
  128.  
  129. where <font-id> is the number assigned to the font within
  130. the PRD file by means of the "F#" directive.  <font-name> is
  131. the 2 character label used to identify this particular font.
  132. <character-set> specifies the 2 character label used to
  133. identify USASCII and Roman-8 fonts.  Font ids range from 0
  134. to 63, their mappings onto Font Names are given in the Word
  135. Printer Manual.  These mappings as well as the Font's
  136. Character set, size and face style are all encoded within
  137. the file names chosen by HP to name their font files.
  138.  
  139. For each font definition, the <font-styles> parameter string
  140. specifies from left to right the style codes associated with
  141. font styles regular, italic, bold and bold italic.  These
  142. are the codes used to build Font File names.  In the
  143. supplied CFG file, the parameter string "ribi" associates
  144. the codes "r", "i", "b" and "i" with font styles regular,
  145. italic, bold and bold italic.  Since no real bold-italic
  146. font is available, its closest sibling, italic, is used in
  147. its place.  For this mapping to work note that the supplied
  148. PRD files assume that all four distinct font styles are
  149. available for use.  Which styles or faces actually get used,
  150. or remapped, may be controlled to some extent by the
  151. download program.
  152.  
  153. The download program has been tested on an IBM PC-AT, it
  154. should work with any IBM compatible computer.  It may, or
  155. may not, work on the HP-150.   Save for a direct BIOS call
  156. to write to the printer, SOFTAD.EXE uses standard DOS
  157. services.   It was written under MS "C" v4.0.
  158.  
  159.  
  160.  
  161. Installation:
  162. -------------
  163.  
  164. Install all files on your MS Word 3.x directory.   You may
  165. need to modify the PRD file to change some of the supplied
  166. defaults.  After that you should be ready to go.  Notice
  167. that the supplied PRD file supports both sets of USASCII and
  168. Roman-8 fonts, this assumes that you have the corresponding
  169. font files of both types.  Roman-8 font files look as *.R8P,
  170. while their USASCII counterparts look as *.USP.  If you
  171. don't need to work with extended characters use the USASCII
  172. fonts, they roughly about half as much memory on your
  173. LaserJet+ printer as Roman-8 fonts do.
  174.  
  175. The current download program doesn't have the smarts to
  176. keep track of LaserJet+ memory usage.  Specifically, it
  177. cannot detect the LaserJet+ status "20", out of memory.  If
  178. such a thing occurs it is best to restart the print
  179. operation again selecting this time a lesser number of fonts
  180. to be downloaded.  Maybe a future version of SOFTAD.EXE will
  181. be able to parse the downloaded fonts and figure out the
  182. amount of memory used and issue a warning message at the
  183. right time!
  184.  
  185.  
  186.  
  187. CUSTOMIZATION:
  188. --------------
  189.  
  190. The supplied font download program, unlike its Microsoft
  191. counterpart, is general enough to be used with other PRD
  192. files using downloadable fonts.  Simply, create a copy of
  193. SOFTAD.EXE with the name of your new PRD file and configure
  194. it with an appropiate CFG file.  For example, if you have
  195. some other downloadable soft fonts PRD file by the name of
  196. SAMPLE.PRD, then the download program would be named
  197. SAMPLE.EXE and the configure file SAMPLE.CFG.
  198.  
  199. As already mentioned, SOFTAD.PRD supports both Roman-8 and
  200. USASCII font sets.   It does this at the price of a slight
  201. incompatability with the rest of the family of PRD files.
  202. Microsoft suggests the use of consistent font numbers across
  203. the range of PRD files, see Word's Printer Manual Chapter.
  204. The TmsRmn font is assigned the number "24", Helvetica is
  205. assigned font number "8".  To support USASCII fonts within
  206. the same PRD file, SOFTAD.PRD arbitrarily assigns font
  207. number "25" for USASCII Times Roman, and font number "9" for
  208. USASCII Helvetica.  When moving among PRD files, Word
  209. equates fonts by the numbers, font number 24 (roman i) in
  210. one PRD file matches whatever font has been assigned a
  211. number of 24 (roman i) in the other PRD file.  If such a
  212. font does'nt exist on the other PRD file, then Word chooses
  213. the default printer font, Courier for the LaserJet+.
  214.  
  215.  
  216.  
  217.  
  218.  
  219. Font Information Display Utility: WIDTHS.COM
  220. --------------------------------------------
  221.  
  222. Font descriptor and width table information may be displayed
  223. by means of the utility WIDTHS.COM.  The program uses DOS
  224. re-direction for its input and output.  Input must be a
  225. standard HP font file, output whatver you desire, examples:
  226.  
  227.     WIDTHS  <d:\hpfonts\hv060bpn.r8p >CON:
  228.  
  229.     WIDTHS  <d:\hpfonts\hv060bpn.r8p >LPT2:
  230.  
  231.     WIDTHS  <d:\hpfonts\hv060bpn.r8p >hv060bpn.doc
  232.  
  233.  
  234. Font descriptor information is diaplayed in symbolic form.
  235. Two width tables are produced, the first with characters
  236. ranging from 32 to 255.  The second, as used by MS Word for
  237. the IBM PC family, with characters ranging from 32 to 175.
  238. The first table is suitable for use by HP micros, while the
  239. second width table is for use by IBM micros, it remaps
  240. printable characters in the range 128-255 from the first
  241. table into characters 128-175 as specified by the translate
  242. table T0 in the PRD file.
  243.  
  244.  
  245.  
  246. Font Conversion Utility: USASCII
  247. --------------------------------
  248.  
  249. The utility USASCII.COM allows you to convert a
  250. Roman-Extended font to its USASCII version.  You invoke
  251. USASCII in a similar fashion to WIDTHS.  For example:
  252.  
  253.     USASCII <hv060rpn.r8p >hv060rpn.usp
  254.  
  255. would convert font HV060RPN.R8P to its USASCII counterpart
  256. HV060RPN.USP.  USASCII fonts use considerably less memory on
  257. your LaserJet+ and ought to be used when possible.
  258.  
  259.  
  260.  
  261. Feedback:
  262. ---------
  263.  
  264. Please report all problems and or suggestions for
  265. improvements to Denis DeLaRoca [72406,1717].
  266.